package bishi.likou_1_30;

import java.util.*;

/**
 * @auther Tang Xiaozun
 * @date 2022/1/30
 */
public class one {
    public int findFinalValue(int[] nums, int original) {
        Arrays.sort(nums);
        original*=2;
        for (int i=0;i<nums.length;i++){
            if(nums[i]==original){
                original*=2;
                continue;
            }else if (nums[i]>original){
                break;
            }
        }
        return original;
    }
}
